'use strict'

/**
 * 当前文件仅用于演示实际的配置文件的结构，请在当前目录建立 database.js 文件用于数据库配置文件
 */


// 标记发布环境：正式环境（release），预发布环境（prepub），测试环境（test）
const STAGE = 'release'

const database_config = {
    release: {
        mysql: {
            host: 'XXXXXXXX',
            port: 3306,
            user: 'XXXXXXXX',
            password: 'XXXXXXXX',
            database: 'XXXXXXXX'
        },

        redis: {
            host: 'XXXXXXXX',
            port: 6379,
            password: 'XXXXXXXX',
            db: 0
        }
    },

    prepub: {
        mysql: {
            host: 'XXXXXXXX',
            port: 3306,
            user: 'XXXXXXXX',
            password: 'XXXXXXXX',
            database: 'XXXXXXXX'
        },

        redis: {
            host: 'XXXXXXXX',
            port: 6379,
            password: 'XXXXXXXX',
            db: 0
        }
    },

    test: {
        mysql: {
            host: 'XXXXXXXX',
            port: 3306,
            user: 'XXXXXXXX',
            password: 'XXXXXXXX',
            database: 'XXXXXXXX'
        },

        redis: {
            host: 'XXXXXXXX',
            port: 6379,
            password: 'XXXXXXXX',
            db: 0
        }
    },
}


module.exports = database_config[STAGE]